#ifndef EGG_REFRACTSTAGE_H
#define EGG_REFRACTSTAGE_H

#include "Shader.h"
#include "Texture.h"
#include "Viewport.h"
#include "FrameEvent.h"
#include "MeshEntity.h"
#include "StateCache.h"
#include "RenderQueue.h"
#include "ShaderLib.h"
#include "GeometryLib.h"

namespace egg{

    class RefractStage{
    public:
        RefractStage();
        void doRender(const FrameEvent& evt,TexturePtr color);
    protected:
        ShaderPtr mShader;
        GeometryPtr mQuad;
        TextureParamPtr mColor;
        ShaderParamMap mParamMap;
    };

}

#endif